def fact(n):
    product = 1
    for i in range(1, n + 1):
        product *= i
    return product


a, b = [int(t) for t in input().split()]

print(fact(a + b))
